<%@ page language="java" pageEncoding="utf8"%>
<%
Integer movieId = new Integer(request.getParameter("movieID"));
 %>
<jsp:include page="/head_admin.jsp" />
<script type="text/javascript" src="script/movieSession.js"></script>
<script type="text/javascript">
    dojo.require("dijit.form.DateTextBox");
    
    var hallNameData = {
		identifier:"id_seat",
    	items:[]
    };
   
    var hallNameStore = new dojo.data.ItemFileWriteStore({
    	data:hallNameData
    });
</script>
<script type="text/javascript">
   	dojo.addOnLoad(function(){
   		MovieSession.movieId = <%=movieId%>;
  		MovieSession.askForMovieBriefInfo();
  		MovieSession.init();
  		
  		var movieIdEle = document.getElementById("movieId");
  		movieIdEle.value = <%=movieId%>;
   	});
</script>

<div class="maincontent">
	<div class="HackBox"></div>
	<div id="breadcrumb">
		&nbsp;
		<a href="index.jsp">主页</a>&nbsp;&gt;&nbsp;
		<a href="movieManage.jsp">电影管理</a>&nbsp;&gt;&nbsp;添加电影场次
	</div>

	<div class="maincontentin">
		<div class="addBook_div">
			<span class="addBook_bar"> <span class="left"></span> <span
				class="addMovie_icon">&nbsp;添加电影场次&nbsp;</span>(带星号的为必填内容) </span>
			<form id="addMovieForm" name="addMovieForm" action="addMovieSession.do" method="post" >
				<table class="addBookTable">
					<tr>
						<td width="10%">
							<img src="" id="mrPhoto" style="padding:10px"></img>
						</td>
						<td>
							<ul class="movieBriefInfo">
								<li style="font-size: 14px; color: red;"><span id="mrName"></span></li>
 								<li>语言：<span id="mrLanguage"></span></li>
 								<li>时长：<span id="mrTime"></span></li>
							</ul>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<hr class="dotline"></hr>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<table class="onboardInfo">
								<tr>
									<td class="label" style="width:13%"><span style="color:red">*</span>播放日期： 
									</td>
									<td style="width:35%">
										<input type="text" name="sesDate" id="sesDate"
											dojoType="dijit.form.DateTextBox"
											constraints="{datePattern:'yyyy-MM-dd'}" required="true"
											invalidMessage="请输入播放日期" />
									</td>
									<td style="padding-left:40px">输入播放日期，格式(2008-01-12)</td>
								</tr>
								<tr>
									<td class="label"><span style="color:red">*</span>播放时间：
									</td>
									<td>
										<input dojoType="dijit.form.ValidationTextBox" id="sesTime"
											name='sesTime' required="true" invalidMessage="请输入播放时间" />
									</td>
									<td style="padding-left:40px">输入播放时间，格式10:30(24小时制)</td>
								</tr>
								<tr>
									<td class="label"><span style="color:red">*</span>放映厅：
									</td>
									<td>
										<select id="hallContainer" name="hallContainer"
											style="width: 200px" dojoType="dijit.form.ComboBox" 
											store="hallNameStore" onchange="MovieSession.setHallNote()">
									</td>
									<td style="padding-left:40px">
										<span  id="hallNote"></span>
										<input type="hidden" id="hallId" name="hallId" value="0">
										<input type="hidden" id="movieId" name="movieId" value="0">
									</td>
								</tr>
								<tr>
									<td class="label"><span style="color:red">*</span>价格：
									</td>
									<td>
										<input dojoType="dijit.form.ValidationTextBox" id="price"
											name="price" required="true" invalidMessage="请输入影片价格" />（元） 
									</td>
									<td style="padding-left:40px">输入影片价格</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<div class="buttonbar">
								<div class="btngroup">
									<span class="blue-btn"> <span class="inputbtn"> <span
											class="l"></span> <input type="submit" value='保存'></input> </span> </span>
									<span class="blue-btn"> <span class="inputbtn"> <span
											class="l"></span> <input type="button" value='保存继续添加'></input>
									</span> </span>
									<span class="blue-btn"> <span class="inputbtn"> <span
											class="l"></span> <input type="reset" value='重新填写' onclick="reset();"></input> </span> </span>
								</div>
							</div>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>

</div>

<!-- main content -->


<jsp:include page="footer.jsp" />